<%-- 
    Document   : delete_user
    Created on : Apr 30, 2011, 6:20:07 AM
    Author     : stolworthyfamily
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/jspf/tagImports.jspf" %>
<!DOCTYPE html>


<html:html lang="true">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>
            Manage Accounts
        </title>
        <html:base/>
    </head>
    <tags:adminMenu />

    <tags:body>

        <div id="content">

        <h1>User - Administration</h1>
            <h2>Users:</h2>
            <table style="border-style: solid;">
                <tr style="border-style: inherit;">
                    <th>First Name</th>
                    <th>Last Name</th>
                    <th>Username</th>
                    <th>Email Address</th>
                    <th>Action</th>
                </tr>
                <c:forEach var="user" items="${users}" >
                    <tr>
                        <td><c:out value="${user.firstName}" /></td>
                        <td><c:out value="${user.lastName}" /></td>
                        <td><c:out value="${user.username}" /></td>
                        <td><c:out value="${user.emailAddress}" /></td>
                        <td>
                            <c:url var="deleteUserUrl" value="/admin/deleteUser.do">
                                <c:param name="userID" value="${user.userID}" />
                            </c:url>
                            <a href="${deleteUserUrl}">
                                Delete User
                            </a>
                        </td>

                    </tr>
                </c:forEach>
            </table>
        </div>
        <div id = "footer">
            <span>
                &nbsp;All rights reserved Garage Sale 2011 | Legal | Privacy Policy
            </span>
            <br><br>
            <img alt="" src="../../images/b1.gif">
            <img alt="" src="../../images/b2.gif" style="margin:0px 5px 0px 5px">
            <img alt="" src="../../images/b3.gif">
        </div>

    </tags:body>
</html:html> 

